<div id="posts" class="backend-item comments">
	<br>
	<h2 class="backend-h2">
		<span class="img"></span>
		<span> Các ý kiến - phản hồi</span>
    </h2>
    <p class="saporator"><br /></p>
    
    <form action="<?php echo $this->baseUrl('/admin/comment/'); ?>" method="get">
        <p class="search_box">
            <input class="sbt hover focus" type="text" name="search_box_text" title="Nhập vào tên cần tìm"/>
            <input class="sbc input-hover" type="submit" name="search_box_sumit"  value="Tìm"/>
        </p><!-- End .search_box-->
         <p class="saporator sf"><br /></p>
         
        <div class="table_nav">
                <div class="table_nav_left">
                    <select id="tbn_cat" name="tbn_cate">
                        <option value="0" selected="selected">Hiển thị tất cả</option>
                    <?php 
                    	foreach ($this->dateFilter as $dFilter) {
                    		echo '<option value ="'.$dFilter['mon'].'-'.$dFilter['year'].'">Tháng '.$dFilter['mon'].'-'.$dFilter['year'].'</option>';
                    	}
                    ?>                 
                    </select>
                    
                    <input type="submit" value="Lọc" name="tbn_filter" class="tbn_button input-hover"/> <!-- tbn: là viết tắt của từ table_nav trong div class="table_nav" -->
                    <input type="submit" value="Xóa" name="del" class="tbn_button input-hover"/>
                </div><!-- end .table_nav_left -->
                <div class="table_nav_pages">  
                <?php 
                	//phan trang
					echo $this->paginationControl($this->paginatorComment,'sliding','paginator.phtml');
				?>                           
                </div>
            </div><!-- End .table_nav-->
        <table id="p_post">
            <thead>
                <tr>
                    <th class="col-1-comment"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-comment">Người gởi</th>
                    <th class="col-3-comment">Tên đăng nhập</th>
                    <th class="col-4-comment">Chủ đề</th>
                    <th class="col-5-comment">Nội dung</th>
                    <th class="col-6-comment">Ngày gởi</th>
                </tr>
            </thead>
            <tbody>
            <?php 
            	foreach ($this->paginatorComment as $comment){
            ?>    
                <tr>
                    <th class="col-1-comment">
                        <input class="sub-check" name="comment-check[]" type="checkbox" value="<?php echo $comment['idComment'];?>"/>
                    </th>
                    <th class="col-2-comment"><?php echo $comment['hoDem']." ".$comment['ten'];?></th>
                    <th class="col-3-comment post_title"><?php echo $comment['username'];?> </th>
                    <th class="col-4-comment"><b><?php echo $comment['subject']; ?></b></th>
                    <th class="col-5-comment"><?php echo $this->truncate($comment['content'],0,150); ?></th>
                    <th class="col-6-comment"><?php echo $comment['datecomment']; ?></th>
                </tr>                                          
            <?php 
            	}
            ?>             
            </tbody>
            <tfoot>
                <tr>
                    <tr>
                    <th class="col-1-comment"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-comment">Người gởi</th>
                    <th class="col-3-comment">Tên đăng nhập</th>
                    <th class="col-4-comment">Chủ đề</th>
                    <th class="col-5-comment">Nội dung</th>
                    <th class="col-6-comment">Ngày gởi</th>
                </tr>              
            </tfoot>
        </table>
                
    </form>
</div><!-- end #posts -->
